<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<jsp:include page="global.jsp"></jsp:include>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>项目进度汇报</title>
<style type="text/css">
.ctl {
	text-decoration: none;
	color: blue;
	margin: auto 7px;
}

.ctl:HOVER {
	text-decoration: underline;
}

.center {
	text-align: center;
}
</style>
</head>
<body>
	<div class="easyui-tabs" style="width: 100%; height: 490px;">
		<div title="项目详情" style="padding: 2px;">
			<table width="100%" height="100%">
				<tr>
					<td width="120px" align="right">项目名称：</td>
					<td>
						<input class="easyui-textbox" value="${project.name }" style="width: 200px;" readonly="readonly" />
					</td>
					<td width="100px" align="right">项目代号：</td>
					<td>
						<input class="easyui-textbox" value="${project.projectCode }" style="width: 200px;" readonly="readonly" />
					</td>
					<td width="130px" align="right">项目来源:</td>
					<td>
						<input class="easyui-textbox" value="${project.projectSource.name }" style="width: 200px;" readonly="readonly" />
					</td>
				</tr>
				<tr>
					<td align="right">报告频度:</td>
					<td>
						<input class="easyui-textbox" value="${project.projectReportFrequency.name }" style="width: 200px;" readonly="readonly" />
					</td>
					<td align="right">客户:</td>
					<td>
						<input class="easyui-textbox" value="${project.customer.name }" style="width: 200px;" readonly="readonly" />
					</td>
					<td align="right">项目类型:</td>
					<td>
						<input class="easyui-textbox" value="${project.projectType.name }" style="width: 200px;" readonly="readonly" />
					</td>
				</tr>
				<tr>
					<td align="right">部门:</td>
					<td>
						<input class="easyui-textbox" value="${project.department.name }" style="width: 200px;" readonly="readonly" />
					</td>
					<td align="right">创建日期:</td>
					<td>
						<input class="easyui-textbox" value="${project.createDate }" style="width: 200px;" readonly="readonly" />
					</td>
					<td align="right">项目开始日期:</td>
					<td>
						<input class="easyui-textbox" value="${project.startDate }" style="width: 200px;" readonly="readonly" />
					</td>
				</tr>
				<tr>
					<td align="right">初次计划完成日期:</td>
					<td>
						<input class="easyui-textbox" value="${project.firstPlanFinishDate }" style="width: 200px;" readonly="readonly" />
					</td>
					<td align="right">计划完成日期:</td>
					<td>
						<input class="easyui-textbox" value="${project.planFinishDate }" style="width: 200px;" readonly="readonly" />
					</td>
					<td align="right">实际完成日期:</td>
					<td>
						<input class="easyui-textbox" value="${project.actualFinishDate }" style="width: 200px;" readonly="readonly" />
					</td>
				</tr>
				<tr>
					<td align="right">课题工号:</td>
					<td>
						<input class="easyui-textbox" value="${project.projectPlanNo }" style="width: 200px;" readonly="readonly" />
					</td>
					<td align="right">批次号:</td>
					<td>
						<input class="easyui-textbox" value="${project.projectBatchNo }" style="width: 200px;" readonly="readonly" />
					</td>
					<td align="right">计划消耗工时:</td>
					<td>
						<input class="easyui-textbox" value="${project.planConsumeWorkTime }" style="width: 200px;" readonly="readonly" />
					</td>
				</tr>
				<tr>
					<td align="right">实际消耗工时:</td>
					<td>
						<input class="easyui-textbox" value="${project.actualConsumeWorktime }" style="width: 200px;" readonly="readonly" />
					</td>
					<td align="right">难度系数:</td>
					<td>
						<input class="easyui-textbox" value="${project.hardRate }" style="width: 200px;" readonly="readonly" />
					</td>
					<td align="right">计划完成时间变更次数:</td>
					<td>
						<input class="easyui-textbox" value="${project.planFinishDateChangeCount }" style="width: 200px;" readonly="readonly" />
					</td>
				</tr>
				<tr>
					<td align="right">项目描述：</td>
					<td colspan="7">
						<input class="easyui-textbox" value="${project.projectDescription }" style="width: 890px; height: 80px;" data-options="multiline:true" readonly="readonly" />
					</td>
				</tr>
			</table>
		</div>
		
		<div title="项目人员构成" style="padding: 2px;">
			<table id="projectMemberdg" class="easyui-datagrid"
				data-options="
				rownumbers:true,
				singleSelect: true,
				toolbar: '#projectMembertb',
				singleSelect:true,
				pagination:true,
				fit:true,
				fitColumns:true,
				pageList:[20,25,30,35,40,45,50],
				pageSize:20
				">
				<thead>
					<tr>
						<th data-options="field:'personName',width:80,align:'center'">成员姓名</th>
						<th data-options="field:'projectMemberTypeName',width:100,align:'center'">成员类型</th>
						<th data-options="field:'predictConsumeWorktime',width:80,align:'center'">预计消耗工时</th>
						<th data-options="field:'actualConsumeWorktime',width:80,align:'center'">实际消耗工时</th>
						<th data-options="field:'planEnterDate',width:80,align:'center'">计划介入日期</th>
						<th data-options="field:'planExitDate',width:80,align:'center'">计划退出日期</th>
						<th data-options="field:'duty',width:100,align:'center'">职责</th>
						<th data-options="field:'id',width:40,align:'center',formatter:projectMemberFormatControl">查看</th>
					</tr>
				</thead>
			</table>

			<div id="projectMembertb" style="height: auto">
				<div>
					成员姓名: <select data-options="editable: false" id="person" class="easyui-combobox">
						<option value="-1">--全部--</option>
						<c:forEach var="item" items="${projectPersons }">
							<option value="${item.id }">${item.name }</option>
						</c:forEach>
					</select> 项目成员类型名称: <select data-options="editable: false" id="projectMemberType" class="easyui-combobox">
						<option value="-1">--全部--</option>
						<c:forEach var="item" items="${projectMemberTypes }">
							<option value="${item.id }">${item.name }</option>
						</c:forEach>
					</select> 创建人: <select data-options="editable: false" id="createPerson" class="easyui-combobox">
						<option value="-1">--全部--</option>
						<c:forEach var="item" items="${createProjectPeoples }">
							<option value="${item.id }">${item.name }</option>
						</c:forEach>
					</select> 职责: <input class="easyui-textbox" type="text" id="duty"
						style="width: 240px; height: 25px;"> <a
						href="javascript:projectMemberSearch()" class="easyui-linkbutton"
						iconCls="icon-search">查 找</a>
				</div>
			</div>

			<div id="projectMemberlookDetail" class="easyui-window"
				title="项目成员详情"
				data-options="modal:true,closed:true,iconCls:'icon-search'"
				style="width: 770px; height: 400px; padding: 5px;">
				<div class="easyui-layout" data-options="fit:true">
					<div data-options="region:'center'" style="padding: 10px;">
						<table width="100%" height="100%">
							<tr>
								<td width="160px;" align="right">成员姓名：</td>
								<td width="160px"><input class="easyui-textbox"
									id="lookPersonName" data-options="required:true"
									style="width: 200px;" readonly="readonly" /></td>
								<td width="150px;" align="right">项目名称：</td>
								<td><input class="easyui-textbox" id="lookProjectId"
									data-options="required:true" style="width: 200px;"
									readonly="readonly" /></td>
							</tr>
							<tr>
								<td width="130px;" align="right">项目成员类型名称：</td>
								<td width="160px"><input class="easyui-textbox"
									id="lookProjectMemberTypeId" data-options="required:true"
									style="width: 200px;" readonly="readonly" /></td>
								<td width="130px;" align="right">创建人：</td>
								<td><input class="easyui-textbox" id="lookCreatePersonId"
									data-options="required:true" style="width: 200px;"
									readonly="readonly" /></td>
							</tr>
							<tr>
								<td align="right">预计消耗工时：</td>
								<td><input class="easyui-textbox"
									id="lookPredictConsumeWorktime" data-options="required:true"
									style="width: 200px;" readonly="readonly" /></td>
								<td align="right">实际消耗工时：</td>
								<td><input class="easyui-textbox"
									id="lookActualConsumeWorktime" data-options="required:true"
									style="width: 200px;" readonly="readonly" /></td>
							</tr>
							<tr>
								<td align="right">计划介入项目日期：</td>
								<td><input class="easyui-datebox" id="lookPlanEnterDate"
									data-options="required:true" style="width: 200px;"
									readonly="readonly" /></td>
								<td align="right">计划推出项目日期：</td>
								<td><input class="easyui-datebox" id="lookPlanExitDate"
									data-options="required:true" style="width: 200px;"
									readonly="readonly" /></td>
							</tr>
							<tr>
								<td align="right">项目职责：</td>
								<td><input class="easyui-textbox" id="lookDuty"
									data-options="required:true" style="width: 200px;"
									readonly="readonly" /></td>
								<td align="right">工时系数：</td>
								<td><input class="easyui-textbox" id="lookWorktimeRate"
									data-options="required:true" style="width: 200px;"
									readonly="readonly" /></td>
							</tr>
							<tr>
								<td align="right">创建时间：</td>
								<td colspan="3"><input class="easyui-textbox"
									id="lookCreateTime" data-options="required:true"
									style="width: 200px;" readonly="readonly" /></td>
							</tr>
							<tr>
								<td align="right">描述：</td>
								<td colspan="3"><input class="easyui-textbox"
									data-options="multiline:true"
									style="width: 555px; height: 80px;" id="lookRemark"
									readonly="readonly" /></td>
							</tr>
						</table>
					</div>
					<div data-options="region:'south',border:false"
						style="text-align: right; padding: 5px 0 0;">
						<a class="easyui-linkbutton" data-options="iconCls:'icon-ok'"
							href="javascript:void(0)"
							onclick="javascript:$('#projectMemberlookDetail').window('close')"
							style="width: 80px">关 闭</a>
					</div>
				</div>
			</div>
			<script type="text/javascript">
				function projectMemberFormatControl(val, row){
					return '<a class="ctl" href="javascript:void(0)" onclick="lookDetail(' + val + ')">查看</a>';
				}
				function lookDetail(id){
					var params = "id=" + id;
					$.ajax({
					  	type: "GET",
					  	url: "findProjectMember",
					  	data: params,
					  	success:function(data){
						  	var val = $.parseJSON(data);
							if(val.success){
								var item = val.data;
	
								$("#lookPersonName").textbox("setValue", item.personId);
								$("#lookProjectId").textbox("setValue", item.projectId);
								$("#lookCreatePersonId").textbox("setValue", item.createPersonId);
								$("#lookProjectMemberTypeId").textbox("setValue", item.projectMemberTypeId);
								$("#lookPredictConsumeWorktime").textbox("setValue", item.predictConsumeWorktime);
								$("#lookActualConsumeWorktime").textbox("setValue", item.actualConsumeWorktime);
								$("#lookPlanEnterDate").textbox("setValue", item.planEnterDate);
								$("#lookPlanExitDate").textbox("setValue", item.planExitDate);
								$("#lookDuty").textbox("setValue", item.duty);
								$("#lookWorktimeRate").textbox("setValue", item.worktimeRate);
								$("#lookCreateTime").textbox("setValue", item.createTime);
								$("#lookRemark").textbox("setValue", item.remark);
								
								$('#projectMemberlookDetail').window('open');
							}else{
								$.messager.alert("提示", val.msg, "error");
							}
					  	}
					});
				}
				function projectMemberSearch(){
					var person = $("#person").combobox("getValue");
					var projectMemberType = $("#projectMemberType").combobox("getValue");
					var createPerson = $("#createPerson").combobox("getValue");
					var duty = $("#duty").textbox("getValue").trim();
					var url = "queryProjectMember?duty=" + duty + "&personId=" + person + "&projectId=${project.id}&projectMemberTypeId=" + projectMemberType + "&createPersonId=" + createPerson;
					$("#projectMemberdg").datagrid('reload', url);
				}
			</script>

		</div>

		<div title="项目任务情况" style="padding: 2px;">
			<div class="easyui-layout" style="width: 100%; height: 100%;">
				<div data-options="region:'north',title:'项目任务'" style="height: 230px;">
					<table id="projectTaskdg" class="easyui-datagrid"
						data-options="
								rownumbers:true,
								singleSelect: true,
								toolbar: '#projectTasktb',
								singleSelect:true,
								pagination:true,
								fit:true,
								fitColumns:true
							">
						<thead>
							<tr>
								<th data-options="field:'projectTaskId',checkbox:true, formatter: function(val, row){return row.id;}"></th>
								<th data-options="field:'projectName',width:80,align:'center'">项目</th>
								<th data-options="field:'projectTaskTypeName',width:80,align:'center'">任务类型</th>
								<th data-options="field:'taskDescription',width:200,align:'center'">任务描述</th>
								<th data-options="field:'planFinishDate',width:100,align:'center'">计划完成日期</th>
								<th data-options="field:'actualFinishDate',width:100,align:'center'">实际完成日期</th>
								<th data-options="field:'status',width:60,align:'center'">状态</th>
								<th data-options="field:'id',width:80,align:'center',formatter:projectTaskFormatControl">查看</th>
							</tr>
						</thead>
					</table>

					<div id="projectTasktb" style="height: auto">
						<div>
							任务类型: <select data-options="editable: false" id="projectTaskProjectTaskType"
								class="easyui-combobox">
								<option value="-1">--全部--</option>
								<c:forEach var="item" items="${projectTaskTypes }">
									<option value="${item.id }">${item.name }</option>
								</c:forEach>
							</select> 创建时间: <input class="easyui-datebox" type="text"
								id="projectTaskTaskCreateTimeBegin"
								style="width: 100px; height: 25px;"> ~ <input
								class="easyui-datebox" type="text"
								id="projectTaskTaskCreateTimeEnd"
								style="width: 100px; height: 25px;"> <a
								href="javascript:projectTaskSearch()" class="easyui-linkbutton"
								iconCls="icon-search">查 找</a>
						</div>
					</div>

					<div id="lookProjectTaskDetail" class="easyui-window"
						title="项目任务详情"
						data-options="modal:true,closed:true,iconCls:'icon-search'"
						style="width: 750px; height: 370px; padding: 5px;">
						<div class="easyui-layout" data-options="fit:true">
							<div data-options="region:'center'" style="padding: 10px;">
								<table width="100%" height="100%">
									<tr>
										<td width="250px;" align="right">项目名称：</td>
										<td><input class="easyui-textbox"
											id="lookProjectTaskProjectId" data-options="required:true"
											readonly="readonly" /></td>										
									</tr>
									<tr>
										<td width="170px;" align="right">任务类型：</td>
										<td><input class="easyui-textbox"
											id="lookProjectTaskProjectTaskTypeId"
											data-options="required:true" readonly="readonly" /></td>
										<td width="170px;" align="right">状态：</td>
										<td><input class="easyui-textbox"
											id="lookProjectTaskStatus" data-options="required:true"
											readonly="readonly" /></td>
										
									</tr>

									<tr>
										<td align="right">任务描述：</td>
										<td colspan="3"><input class="easyui-textbox"
											data-options="multiline:true"
											style="width: 580px; height: 80px;"
											id="lookProjectTaskTaskDescription" readonly="readonly">
										</td>
									</tr>
									<tr>
										<td align="right">计划开始日期：</td>
										<td><input class="easyui-datebox"
											id="lookProjectTaskTaskBeginDate"
											 readonly="readonly" /></td>
										<td align="right">初次计划完成日期：</td>
										<td><input class="easyui-datebox"
											id="lookProjectTaskFirstPlanFinishDate"
											 readonly="readonly" /></td>										
									</tr>
									<tr>
										<td align="right">计划完成日期：</td>
										<td><input class="easyui-datebox"
											id="lookProjectTaskPlanFinishDate"
											 readonly="readonly" /></td>
										<td align="right">实际完成日期：</td>
										<td><input class="easyui-datebox"
											id="lookProjectTaskActualFinishDate"
											 readonly="readonly" /></td>
									</tr>
									<tr>
										<td align="right">计划工时数：</td>
										<td><input class="easyui-textbox"
											id="lookProjectTaskPlanWorktime" 
											readonly="readonly" /></td>
										<td align="right">实际工时数：</td>
										<td><input class="easyui-textbox"
											id="lookProjectTaskActualWorktime" data-options="required:true"
											readonly="readonly" /></td>
									</tr>

								</table>
							</div>
							<div data-options="region:'south',border:false"
								style="text-align: right; padding: 5px 0 0;">
								<a class="easyui-linkbutton" data-options="iconCls:'icon-ok'"
									href="javascript:void(0)"
									onclick="javascript:$('#lookProjectTaskDetail').window('close')"
									style="width: 80px">关 闭</a>
							</div>
						</div>
					</div>

					<script type="text/javascript">
						function projectTaskFormatControl(val, row) {
							var content = '<a class="ctl" href="javascript:void(0)" onclick="lookProjectTaskDetail(' + val + ')">查看</a>'
							if (row.status == '0001') {
								//content += ' <a class="ctl" href="javascript:void(0)" onclick="lookProjectTaskDetail(' + val + ')">领取</a>';
							}
							return content;
						}
						function projectTaskSearch() {
							var dg = $("#projectTaskdg");
							var projectTaskType = $(
									"#projectTaskProjectTaskType").combobox(
									"getValue");
							var TaskCreateTimeBegin = $(
									"#projectTaskTaskCreateTimeBegin")
									.textbox("getValue").trim();
							var TaskCreateTimeEnd = $(
									"#projectTaskTaskCreateTimeEnd").textbox(
									"getValue").trim();
							var url = "queryProjectTask?projectId=${project.id}&projectTaskTypeId="
									+ projectTaskType
									+ "&TaskCreateTimeBegin="
									+ TaskCreateTimeBegin
									+ "&TaskCreateTimeEnd="
									+ TaskCreateTimeEnd;
							dg.datagrid('reload', url);
						}
						function lookProjectTaskDetail(id) {
							var params = "id=" + id;
							$.ajax({
							  	type: "GET",
							  	url: "findProjectTask",
							  	data: params,
							  	success:function(data){
								  	var val = $.parseJSON(data);
									if(val.success){
										var item = val.data;

										$("#lookProjectTaskPlanFinishDateChangeCount").textbox("setValue", item.planFinishDateChangeCount + "");
										$("#lookProjectTaskProjectId").textbox("setValue", item.projectId);
										$("#lookProjectTaskTaskCreatorId").textbox("setValue", item.taskCreatorId);
										$("#lookProjectTaskProjectTaskTypeId").textbox("setValue", item.projectTaskTypeId);
										$("#lookProjectTaskTaskCreateTime").textbox("setValue", item.taskCreateTime);
										$("#lookProjectTaskTaskPublishTime").textbox("setValue", item.taskPublishTime);
										$("#lookProjectTaskTaskBeginDate").textbox("setValue", item.taskBeginDate);
										$("#lookProjectTaskFirstPlanFinishDate").textbox("setValue", item.firstPlanFinishDate);
										$("#lookProjectTaskPlanFinishDate").textbox("setValue", item.planFinishDate);
										$("#lookProjectTaskTaskAcceptTime").textbox("setValue", item.taskAcceptTime);
										$("#lookProjectTaskTaskDescription").textbox("setValue", item.taskDescription);
										$("#lookProjectTaskPlanWorktime").textbox("setValue", item.planWorktime);
										$("#lookProjectTaskActualWorktime").textbox("setValue", item.actualWorktime);
										$("#lookProjectTaskStatus").textbox("setValue", item.status);
										$("#lookProjectTaskActualFinishDate").textbox("setValue", item.actualFinishDate);

										$('#lookProjectTaskDetail').window('open');
									}else{
										$.messager.alert("提示", val.msg, "error");
									}
							  	}
							});
						}
						$(function() {
							$("#projectTaskdg").datagrid({
								onClickRow : function(rowIndex, rowData) {
									projetTaskPersonSearch(rowData);
								}
							});
							//validateMenu
							projectTaskSearch();//页面装载完成后加载数据
							
							projectMemberSearch();
						});
					</script>

				</div>
				<div data-options="region:'south',title:'项目任务人员分配情况'"
					style="height: 230px;">
					<table id="projetTaskPersondg" class="easyui-datagrid"
						data-options="
								rownumbers:true,
								singleSelect: true,
								toolbar: '#projetTaskPersontb',
								singleSelect:true,
								pagination:true,
								fit:true,
								fitColumns:true
							">
						<thead>
							<tr>
								<th data-options="field:'peopleName',width:80,align:'center'">人员姓名</th>
								<th data-options="field:'chargePersonSign',width:30,align:'center', formatter: function(val, row){ return val=='Y'?'是':'否'}">主责任人</th>
								<th data-options="field:'duty',width:200,align:'center'">职责</th>
								<th data-options="field:'id',width:30,align:'center',formatter:projetTaskPersonFormatControl">查看</th>
							</tr>
						</thead>
					</table>

					<div id="projetTaskPersontb" style="height: auto">
						<div>
							人员姓名: <select data-options="editable: false" id="people" class="easyui-combobox">
								<option value="-1">--全部--</option>
								<c:forEach var="item" items="${peoples }">
									<option value="${item.id }">${item.name }</option>
								</c:forEach>
							</select> 职责: <input class="easyui-textbox" type="text" id="duty"
								style="width: 200px; height: 25px;"> <a
								href="javascript:findSearch()" class="easyui-linkbutton"
								iconCls="icon-search">查 找</a>
						</div>
					</div>

					<div id="lookProjetTaskPersonDetail" class="easyui-window"
						title="项目任务人员详情"
						data-options="modal:true,closed:true,iconCls:'icon-search'"
						style="width: 720px; height: 270px; padding: 5px;">
						<div class="easyui-layout" data-options="fit:true">
							<div data-options="region:'center'" style="padding: 10px;">
								<table width="100%" height="100%">
									<tr>
										<td width="150px;" align="right">人员名称：</td>
										<td>
											<input class="easyui-textbox" id="lookProjetTaskPersonPeopleId" data-options="required:true" style="width:150px" readonly="readonly" />
										</td>
										<td align="right">主责任人：</td>
										<td>
											<input class="easyui-textbox" id="lookProjetTaskPersonChargePersonSign" data-options="required:true" style="width:150px" readonly="readonly" />
										</td>
									</tr>
									<tr>
										
										<td   align="right">职责：</td>
										<td colspan="3">
										<input class="easyui-textbox"
											id="lookProjetTaskPersonDuty" data-options="required:true" style="width:470px;height:100px" data-options="multiline:true"
											readonly="readonly" /></td>
									</tr>
								</table>
							</div>
							<div data-options="region:'south',border:false"
								style="text-align: right; padding: 5px 0 0;">
								<a class="easyui-linkbutton"
									data-options="iconCls:'icon-cancel'" href="javascript:void(0)"
									onclick="javascript:$('#lookProjetTaskPersonDetail').window('close')"
									style="width: 80px">关 闭</a>
							</div>
						</div>
					</div>

					<script type="text/javascript">
						function projetTaskPersonFormatControl(val, row) {
							return '<a class="ctl" href="javascript:void(0)" onclick="lookProjetTaskPersonDetail(' + val + ')">查看</a>';
						}
						function findSearch() {
							var row = $("#projectTaskdg").datagrid("getSelected");
							if (row) {
								projetTaskPersonSearch(row);
							}
						}
						function projetTaskPersonSearch(rowData) {
							var projectTask = rowData.id;
							var people = $("#people").combobox("getValue");
							var duty = $("#duty").textbox("getValue").trim();
							var url = "queryProjectTaskPerson?projectTaskId="+ projectTask + "&peopleId=" + people+ "&duty=" + duty;
							
							$("#projetTaskPersondg").datagrid('reload', url);
						}
						function lookProjetTaskPersonDetail(id) {
							data = "id=" + id;
							$.ajax({
							  type: "GET",
							  url: "findProjetTaskPerson",
							  data: data,
							  success:function(data){
								  	var val = $.parseJSON(data);
									if(val.success){
										var item = val.data;

										$("#lookProjetTaskPersonProjectTaskId").textbox("setValue", item.projectTaskTaskDescription);
										$("#lookProjetTaskPersonPeopleId").textbox("setValue", item.peopleName);
										$("#lookProjetTaskPersonChargePersonSign").textbox("setValue", item.chargePersonSign);
										$("#lookProjetTaskPersonDuty").textbox("setValue", item.duty);
										$("#lookProjetTaskPersonOriginalConsumeWorktime").textbox("setValue", item.originalConsumeWorktime);
										$("#lookProjetTaskPersonConfirmConsumeWorktime").textbox("setValue", item.confirmConsumeWorktime);

										$('#lookProjetTaskPersonDetail').window('open');
									}else{
										$.messager.alert("提示", val.msg, "error");
									}
							  	}
							});
						}
						function delProjetTaskPersonItem(id) {
							$.messager.confirm("删除确认", "您确定要删除所选的项目任务人员吗？", function(r) {
								if (r) {
									data = "id=" + id;
									$.ajax({
										type : "GET",
										url : "delProjetTaskPerson",
										data : data,
										success : function(data) {
											var val = $.parseJSON(data);
											if (val.success) {
												bottomRight('提示', '删除成功！');
												$('#projetTaskPersondg').datagrid('reload');
											} else {
												$.messager.alert("提示", val.msg, "error");
											}
										}
									});
								}
							});
						}
						$(function() {
							findSearch();//页面装载完成后加载数据
						});
					</script>

				</div>
			</div>

		</div>
	</div>
</body>
</html>